home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15830 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: snews.tcel.com!netway
  2. From: tech@netway.ab.ca (Ritchie Annand)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Syntatic sugar
  5. Date: 8 Apr 1996 10:48:28 GMT
  6. Organization: Telnet Canada (403) 262-5859 info@tcel.com
  7. Message-ID: <4kaqts$pp3@challenge.tcel.com>
  8. References: <4k09af$mh6@dewey.csun.edu>
  9. NNTP-Posting-Host: 204.209.150.53
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4k09af$mh6@dewey.csun.edu>, kc44097@csun.edu (chen) wrote:
  13. >Can someone tell me what is "syntatic sugar" means?
  14. >Please e-mail me.   kc44097@huey.csun.edu
  15.  
  16. (Syntactic = of syntax)
  17.  
  18. Don't know if there's an official definition of it anywhere, but I've seen it 
  19. used mostly in the context of "a cuter/nicer way of doing what you can 
  20. already do with regular methods".
  21.  
  22. For example, you could call operator overloading "syntactic sugar" - 
  23. operator+(x) may not do anything fundamentally different from making an "add" 
  24. method, but it sure seems nicer when it's used properly.  (e.g. NOT used to 
  25. mean copy, open or delete ;)
  26.  
  27. Any other good examples about?
  28.  
  29.   --=- Ritchie A.
  30.